<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title> 2-9 我与你同在(逻辑与操作符）</title>
    <link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
    <style type="text/css">
    </style>

    <script type="text/javascript">
    var numa,numb;
    numa=60;
    numb=70;
    if (numa>=60&&numb>=60){
        document.write("javascript考核通过!"+"<br>");
    }

    function zhencha() {
        var numa,numb;
        var numa=prompt("请输入你的一模成绩为?");
        if(numa>=0 && numa<=100)
        {
            var numb=prompt("请输入你的二模成绩为","不要填0-100以外的数,不要去试");
            if(numb>=0 && numb<=100)
            {
                if(numa>=60 && numb<=100)
                {alert("成绩合格");}
                else
                {alert("成绩不合格");}
            }
            if(numb<0)
            {alert("分数不能为负数!");}
            if(numb>100)
            {alert("分数不能超过100!");}
            if(numb=="")
            {alert("分数不能为空哦!");}
        }
        if(numa>100)
        {alert("分数不能超过100!");}
        if(numa<0)
        {alert("分数不能为负数!");}
        if(numa=="")
        {alert("分数不能为空哦!");}
    }
    </script>
</head>

<body>
<div align="center">
    <p><a href="../../index.php#jsjjp" class="fontSize" title="点击进入该目录">目录</a></p>
</div>

<input type="button" onclick="zhencha()" value="点击查询"/>

<script type="text/javascript">

</script>

</body>
</html>
